package com.ding.pojo;

import org.springframework.security.crypto.password.PasswordEncoder;

public class User{
	
	public String username,password,authority="user";
	public User() {
	}
	public User(String username,String password,String authority) {
		this.password=password;
		this.authority=authority;
		this.username=username;
	}
	
	public void setUsername(String username) {
		this.username = username;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public void setauthority(String authority) {
		this.authority = authority;
	}
	
	public String getUsername() {
		return username;
	}
	
	
	public String getPassword(PasswordEncoder encoder) {
		return encoder.encode(password);
	}
	public String getPassword() {
		return password;
	}
	public String getauthority() {
		return authority;
	}
	
}
